/* jshint indent: 1 */

module.exports = function(sequelize, DataTypes) {
	return sequelize.define('test', {
		id: {
			type: DataTypes.INTEGER(11),
			allowNull: false,
			primaryKey: true
		},
		name: {
			type: DataTypes.STRING(36),
			allowNull: true
		},
		sex: {
			type: DataTypes.INTEGER(2),
			allowNull: true
		},
		age: {
			type: DataTypes.STRING(2),
			allowNull: true
		},
		studentId: {
			type: DataTypes.STRING(20),
			allowNull: true
		},
		class: {
			type: DataTypes.STRING(255),
			allowNull: true
		},
		charge: {
			type: DataTypes.STRING(255),
			allowNull: true
		},
		photo: {
			type: DataTypes.STRING(255),
			allowNull: true
		},
		status: {
			type: DataTypes.INTEGER(2),
			allowNull: true
		},
		date: {
			type: DataTypes.STRING(111),
			allowNull: true
		}
	}, {
		tableName: 'test',
		timestamps: false
	});
};
